package annotation;

/**
 * @ClassName MyStudent
 * @Description TODO
 * @Author liang
 * @Date 2018/10/17 14:45
 * @Version 1.0
 **/
@Table("tb_student")
public class MyStudent {
    @Filed(columnName = "我是id的列名",type = "int",length = "2")
    private int id;
    @Filed(columnName = "name",type = "varchar",length = "20")
    private String name;
    @Filed(columnName = "age",type = "int",length = "3")
    private int age;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
